home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
squota-0.01
/
squota-0~
/
Squota
/
quotavars
< prev
next >
Wrap
Text File
|
1996-05-07
|
1KB
|
30 lines
#!/bin/bash
# Squota - Screwed Quota Copyright (c) 1996 Gary Barrueto
##############################################################################
# HQ, FSLIMIT and WHATDIR is the only varibles you can modify
##############################################################################
# so users can check their daily quota, the following should be added to
# /etc/profile :
# /usr/local/bin/Sqcheck
##############################################################################
# HQ - where Squota resides
HQ=/var/adm/Squota
# $FSLIMIT is the # of megabytes you allow..
# next release of this script will calculate $ due if over $FSLIMIT (average)
FSLIMIT=5
# WHATDIR is where user homes reside
# you must have an entry in /etc/passwd as a defined home dir for a user
# since I use '~' to "cd" into directories.
WHATDIR=/home
##############################################################################
# There is no need to edit below this line....
##############################################################################
# $MON is the suffix of each file, this chages to Abbrev. of each month
MON=`date +%b`
# $DAY is the # of days to divide by to get average
DAY=`date +%d`
# I need a variable set it zero
EMPTY=0
# $PULENGTH sets # of users...
PULENGTH=`echo \`wc -l $HQ/quota.users\` | cut -d" " -f1`